package com.cxs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cxs.entity.Clazz;
import com.cxs.service.ClazzService;
import com.cxs.mapper.ClazzMapper;
import com.cxs.entity.bo.ClazzBo;
import com.cxs.entity.vo.ClazzVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: ClazzServiceImpl
 * @description:
 * @author: 诗涵
 * @create: 2024-01-07 08:17
 */
@Service
public class ClazzServiceImpl extends ServiceImpl<ClazzMapper, Clazz>
    implements ClazzService{

    @Autowired
    private ClazzMapper clazzMapper;

    @Override
    public ClazzBo getClazzInfoByClazzId(Integer clazzId) {
        return clazzMapper.getClazzInfoByClazzId(clazzId);
    }

    @Override
    public List<ClazzVO> selectList() {

        return clazzMapper.selectListByKeyword(null);
    }
}




